#!/bin/bash -e

function info() {
echo Usage: `basename $0` '[-t(est)] sra [sra2 ...]'
exit 1
}

while getopts  ":p:f:t" opt; do
	case  $opt  in
		p) out_prefix=$OPTARG;;
		f) suffix=$OPTARG;;
        t) tes="-X 5";;
		*) info;;
	esac
done
shift $(($OPTIND - 1))


if [ $# -lt 1 ]; then info; fi

. $var

for sra; do
    fastq-dump $tes --split-files $sra &
done

. $cmd_done

